/*
 *  matrix_helpers.h
 *  Renderbunny
 *
 *  Created by Holmes Futrell on 1/26/11.
 *  Copyright 2011 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef MATRIX_HELPERS_H
#define MATRIX_HELPERS_H

#include "matrix.h"

mat4 rb_mat4_normal_matrix( const mat4 *mat );

mat4 rb_mat4_ortho(float left, float right, float bottom,float top, float zNear, float zFar);

mat4 rb_mat4_frustum(float left, float right, float bottom, float top, float zNear, float zFar);

mat4 rb_mat4_perspective(float fovyInDegrees, float aspectRatio, float znear, float zfar);

mat4 rb_mat4_look_at(float eyeX,
					 float eyeY,
					 float eyeZ,
					 float centerX,
					 float centerY,
					 float centerZ,
					 float upX,
					 float upY,
					 float upZ );

mat4 rb_mat4_rotate(float theta, float x, float y, float z);

#endif